# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <pabloyoyoista@postmarketos.org>
pkgname=totem
pkgver=43.1
pkgrel=0
pkgdesc="Movie player for the GNOME desktop"
url="https://wiki.gnome.org/Apps/Videos"
arch="all !s390x !riscv64" # grilo-plugins missing
license="GPL-2.0-or-later"
depends="
	grilo-plugins
	gsettings-desktop-schemas
	gst-plugins-bad
	gst-plugins-good
	gst-plugins-good-gtk
	"
makedepends="
	clutter-gtk-dev
	glib-dev
	gnome-desktop-dev
	gobject-introspection-dev
	grilo-dev
	gsettings-desktop-schemas-dev
	gst-plugins-base-dev
	gstreamer-dev
	gstreamer-tools
	gtk+3.0-dev
	itstool
	libhandy1-dev
	libpeas-dev
	libxml2-dev
	meson
	py3-gobject3-dev
	totem-pl-parser-dev
	vala
	"
checkdepends="xvfb-run desktop-file-utils appstream-glib"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/totem/${pkgver%.*}/totem-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	xvfb-run meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
1cd6ccea8a6e379095d1974b095aa29d7c7d800028704d680300dffc4c69a8d60397cab10996ab1c2e8075be5f7ddbce1aa5207d63b1088d23a42d9cd597730f  totem-43.1.tar.xz
"
